package com.somnus.androidkotlindemo.databinding;

import android.databinding.ViewDataBinding;

import com.chad.library.adapter.base.BaseViewHolder;

/**
 * Created by Somnus on 2017/3/22.
 *
 * @Description:
 */

public class BindingViewHolder<T extends ViewDataBinding> extends BaseViewHolder {
    private T mDataBing;

    public BindingViewHolder(T dataBing) {
        super(dataBing.getRoot());
        this.mDataBing = dataBing;
    }

    public ViewDataBinding getBinding(){
        return this.mDataBing;
    }
}
